package dr.joketalker.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;



/**
 * @author rdu1lo
 *
 */
public class Joke extends Entity implements Serializable {


	/**
	 * 
	 */
	private static final long serialVersionUID = -7752047966583573624L;
	protected String 	title			;
	protected String 	description		;
	protected String	created			;
	protected User		user			;
	protected String  	category		;
	protected String	language		;
	protected String	linkYt			;
	protected String	linkFtp			;
	protected long     points			;
	protected long 		clicks			;
	public long getClicks() {
		return clicks;
	}


	public void setClicks(long clicks) {
		this.clicks = clicks;
	}


	//new 
	protected  List<JokeEvaluation> listJokeEvualation = new LinkedList<JokeEvaluation>();
	

	@Override
	protected void clear(){
		super.clear();
		
		 title			= "";
		 description	= "";
		 created		= new Date().toString();
		 user			= new User();
		 category		= "";
		 language		= "";
		 linkYt			= "1";
		 linkFtp		= "";
		 points			= 0;	
		 clicks			= 0;
	}
	

	public Joke() {
		super();
		clear();
		// TODO Auto-generated constructor stub
	}

	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getCreated() {
		return created;
	}
	public void setCreated(String created) {
		this.created = created;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}


	public String getLanguage() {
		return language;
	}


	public void setLanguage(String language) {
		this.language = language;
	}


	public String getLinkYt() {
		return linkYt;
	}

	public void setLinkYt(String linkYt) {
		this.linkYt = linkYt;
	}

	public String getLinkFtp() {
		return linkFtp;
	}

	public void setLinkFtp(String linkFtp) {
		this.linkFtp = linkFtp;
	}
	

	public List<JokeEvaluation> getListJokeEvualation() {
		return listJokeEvualation;
	}

	public void setListJokeEvualation(List<JokeEvaluation> jokeEvualation) {
		this.listJokeEvualation = jokeEvualation;
	}

	
	
	public float getPoints() {
		return points;
	}


	public void setPoints(long points) {
		this.points = points;
	}


	@Override
	public String toString() {
		return "Joke [title=" + title + ", description=" + description
				+ ", created=" + created + ", user=" + user + ", category="
				+ category + ", language=" + language + ", linkYt=" + linkYt
				+ ", linkFtp=" + linkFtp + ", points=" + points
				+ ", listJokeEvualation=" + listJokeEvualation + ", id=" + id
				+ "]";
	}




}
